// 格式化时间
export function SET_TIME_YYMMDD(date) {
    let time = new Date(date);
    let YY =  time.getFullYear();
    let MM = time.getMonth()+1;
    let DD = time.getDate();
    return YY + "年" + MM + "月" + DD + "日";
}

export function SET_TIME_YYMMDDHHMM(date) {
    let time = new Date(date);
    let YY =  time.getFullYear();
    let MM = time.getMonth()+1;
    let DD = time.getDate();
    let HH = time.getHours();
    let mm = time.getMinutes();
    return YY + "年" + MM + "月" + DD + "日" + HH + ":" + mm;
}

export function SET_TIME_YYMM(date) {
    let time = new Date(date);
    let YY =  time.getFullYear();
    let MM = time.getMonth()+1;
    let DD = time.getDate();
    return YY + "-" + MM + "-" + DD
}

export function SET_TIME_HHMM(date) {
    let time = new Date(date);
    let HH = time.getHours();
    let mm = time.getMinutes();
    return mm==0?HH + ":" + "00":HH + ":" + mm;
}